package com.zlzxm.shoesmarket.net.api;

import com.zlzxm.shoesmarket.net.BaseCallBack;
import com.zlzxm.shoesmarket.net.request.RqInvAdd;
import com.zlzxm.shoesmarket.net.respone.BaseResponse;
import com.zlzxm.shoesmarket.net.respone.RpRepositoryGoods;

import io.reactivex.rxjava3.core.Observable;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * CREATE BY zlzxm ON 2021/5/24
 */
public interface InvApi {

    @GET("qiuxie/v1/inv/list")
    Observable<RpRepositoryGoods> list(@Query("articleNumber")String articleNumber,
                                       @Query("ckId")String ckId,
                                       @Query("size")String size);

    @POST("qiuxie/v1/inv/add")
    Observable<BaseResponse<String>> add(@Body RqInvAdd rqInvAdd);

    @FormUrlEncoded
    @POST("qiuxie/v1/inv/add")
    Observable<BaseResponse<String>> add(@Field("articleNumber") String articleNumber,
                                         @Field("ckId") String ckId,
                                         @Field("number") String number,
                                         @Field("price") String price,
                                         @Field("ps") String ps,
                                         @Field("size") String size);


}
